//part1:C16:ex16.14.cpp
// tempalte<> Screen
#include <iostream>
#include <string>
#include "tScreen.h"
using std::cout;
using std::endl;
using std::string;

int main(void)
{
    Screen<5, 3> myScreen;
    myScreen.display(cout);
    myScreen.move(4, 0).set('#');

    Screen<5, 5> nextScreen('X');
    nextScreen.move(4, 0).set('#').display(cout);
    cout << "\n";

    const Screen<5, 3> blank;
    myScreen.set('#').display(cout);
    cout << endl;
    blank.display(cout);
    cout << endl;

    myScreen.clear('Z').display(cout);
    cout << endl;

    myScreen.move(4, 0);
    myScreen.set('#');


    myScreen.display(cout);
    cout << endl;

    myScreen.clear('Z').display(cout);
    cout << endl;

    Screen<5, 3> tmp = myScreen.move(4, 0);
    tmp.set('#');
    myScreen.display(cout);
    cout << endl;
    
    return 0;
}


